package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type UserGoodsInfoRouter struct {
}

// InitUserGoodsInfoRouter 初始化 UserGoodsInfo 路由信息
func (s *UserGoodsInfoRouter) InitUserGoodsInfoRouter(Router *gin.RouterGroup) {
	userGoodsInfoRouter := Router.Group("userGoodsInfo").Use(middleware.OperationRecord())
	userGoodsInfoRouterWithoutRecord := Router.Group("userGoodsInfo")
	var userGoodsInfoApi = v1.ApiGroupApp.AutoCodeApiGroup.UserGoodsInfoApi
	{
		userGoodsInfoRouter.POST("createUserGoodsInfo", userGoodsInfoApi.CreateUserGoodsInfo)   // 新建UserGoodsInfo
		userGoodsInfoRouter.DELETE("deleteUserGoodsInfo", userGoodsInfoApi.DeleteUserGoodsInfo) // 删除UserGoodsInfo
		userGoodsInfoRouter.DELETE("deleteUserGoodsInfoByIds", userGoodsInfoApi.DeleteUserGoodsInfoByIds) // 批量删除UserGoodsInfo
		userGoodsInfoRouter.PUT("updateUserGoodsInfo", userGoodsInfoApi.UpdateUserGoodsInfo)    // 更新UserGoodsInfo
	}
	{
		userGoodsInfoRouterWithoutRecord.GET("findUserGoodsInfo", userGoodsInfoApi.FindUserGoodsInfo)        // 根据ID获取UserGoodsInfo
		userGoodsInfoRouterWithoutRecord.GET("getUserGoodsInfoList", userGoodsInfoApi.GetUserGoodsInfoList)  // 获取UserGoodsInfo列表
	}
}
